# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libesedb-python
_pkgname=libesedb-python
pkgver=20240420
pkgrel=3
pkgdesc='Library and tools to access the Extensible Storage Engine (ESE) Database File (EDB) format.'
url='https://pypi.org/project/libesedb-python/#files'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
replaces=('python-libesedb')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('3eb34205183a9d695529057eb37a4b1e3a372038157dbf65330c3996cc0dbf6790485cbeb2e51e289c3a533763b190eec0be0e8965395b203d174db186ab5ec0')

build() {
  cd "libesedb-$pkgver"

  python setup.py build
}

package() {
  cd "libesedb-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

